package GUI;

import javax.swing.JList;
import javax.swing.JScrollPane;
import javax.swing.JButton;
import java.awt.event.ActionListener;

/**
 * The Class cReportGUI.
 */
public class cReportGUI extends AbstractPanelGUI {

	
	
	/** The c report list. */
	private JList<String> cReportList;
	
	
	/** The btn back. */
	private JButton btnBack;
	
	/**
	 * Create the panel.
	 */
	public cReportGUI() {
		initialize();
	}
	
	/* (non-Javadoc)
	 * @see GUI.AbstractPanelGUI#initialize()
	 */
	public void initialize() {
		setLayout(null);
		setSize(Width,Height);
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(95, 5, 260, 132);
		add(scrollPane);
		
		cReportList = new JList();
		scrollPane.setViewportView(cReportList);	
		
		btnBack = new JButton("Back");
		btnBack.setBounds(114, 225, 91, 23);
		add(btnBack);
	}


	/**
	 * Gets the c report list.
	 *
	 * @return the c report list
	 */
	public JList<String> getCReportList() {
		return cReportList;
	}

	/**
	 * Adds the back action listener.
	 *
	 * @param listener the listener
	 */
	public void addBackActionListener(ActionListener listener)
	{
		btnBack.addActionListener(listener);
	}
	
}
